package com.crcode.crm.bean.system;

import java.io.Serializable;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 公告实体
 * 
 * @author xiangfei
 * @date 2019年3月25日
 */
@Entity
@Table(name = "sys_notice")
public class NoticeBean implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", length = 10)
	private Integer id; // 序号
	
	@Column(name="user_uuid", length = 100)
	private String userUuid = UUID.randomUUID().toString().replaceAll("-", ""); // 用户uuid
	
	@Column(name="user_name", length = 100)
	private String userName; // 用户名称

	@Column(name="notice_title", length = 100)
	private String noticeTitle; // 标题

	@Column(name="notice_content", length = 1000)
	private String noticeContent; // 内容

	@Column(name="create_time", length = 100)
	private String createTime; // 创建时间

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserUuid() {
		return userUuid;
	}

	public void setUserUuid(String userUuid) {
		this.userUuid = userUuid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getNoticeTitle() {
		return noticeTitle;
	}

	public void setNoticeTitle(String noticeTitle) {
		this.noticeTitle = noticeTitle;
	}

	public String getNoticeContent() {
		return noticeContent;
	}

	public void setNoticeContent(String noticeContent) {
		this.noticeContent = noticeContent;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
}
